/*
	DS Kanji Flash
	Copyright (C) 2009,2010 Bernhard Schelling

	This file is part of DS Kanji Flash.

	DS Kanji Flash is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	DS Kanji Flash is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with DS Kanji Flash.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _JPVOCAB_DICT_
#define _JPVOCAB_DICT_

#define DRAW_MAX_POINTS 50
#define DRAW_MAX_STROKES 23
#define JUDGE_PREC 10

extern const u8* kanjipool_png[];
extern const int kanjipool_num;
extern const u8* kanapool_png[];

const char* GetDict(int iKanji, int iDict);
const u8* GetCharStrokes(wchar_t wcChar, bool bGetAllVariants = false);
float GetDrawScore(const u8 kanji_strokes[], u8 correction[DRAW_MAX_STROKES][JUDGE_PREC][2] = NULL);
float GetDrawScoreVariants(const u8 *kanji_variants);
wchar_t GuessChar();
void DrawProcessInput();
void DrawClearImage(bool bUseEditMode = false);
void DrawDisplay(const u8 *pStrokeGuide = NULL, UL_IMAGE *imgOverlay = NULL);
bool DrawOutDrawnPosString(FILE *pfRecord);

#endif//_JPVOCAB_DICT_
